<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddDisableSnappedTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('snapped', function (Blueprint $table) {
            //

            $table->integer('disable')->unsigned()->default(1)->comment('禁用状态，1是正常状态，2是禁用状态');
        });


        Schema::table('snapped_sku', function (Blueprint $table) {
            //

            $table->integer('disable')->unsigned()->default(1)->comment('禁用状态，1是正常状态，2是禁用状态');
        });


    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('snapped', function (Blueprint $table) {
            //
            $table->dropColumn('disable');

        });

        Schema::table('snapped_sku', function (Blueprint $table) {
            //
            $table->dropColumn('disable');
        });
    }
}
